.. _`Label Encoder`: .. _`org.sysess.sympathy.machinelearning.label_encoder`: Label Encoder ````````````` .. image:: label_encoder.svg :width: 48 Encode single string labels with value between 0 and n_classes-1. Documentation ::::::::::::: This transformer should be used to encode target values, i.e. y, and not the input X. Example:: [1, 1, 2, 6] -> [0, 0, 1, 2] Attributes ========== **classes_** Holds the label for each class. Definition :::::::::: Output ports ============ **model** | Type: model | Description: Model Implementation ============== .. automodule:: node_preprocessing :noindex: .. class:: LabelEncoder :noindex: